<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2018-08-07
  Time: 15:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<link rel="stylesheet" href="${pageContext.request.contextPath}/static/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/table/bootstrap-table.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/table/bootstrap-table.min.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/table/locale/bootstrap-table-zh-CN.min.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.css"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/date/Moment.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/date/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/layui.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/tongyong.css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/easyui/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/easyui/demo.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/easyui/jquery.easyui.min.js"></script>


<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/shequfuwu/baoanxunluo.js"></script>




<html>
<head>
    <title>保安巡逻</title>
</head>
<body>

<div class="panel panel-default">
    <div class="panel-body">
        <%--查询--%>
        <form class="form-inline">
            <%--添加按钮--%>
            <button type="button" style="margin-left: 15px;margin-right: 15px;" class="btn btn-default navbar-btn"  data-target="#myModal" data-toggle="modal">增加</button>&nbsp;
            <%--按时间查询--%>
            <div  class="input-group input-daterange">
                <input id="shijianyi" type="text" class="form-control">
                <div class="input-group-addon">到：</div>
                <input id="shijianer" type="text" class="form-control">
            </div>
            事件类型：
                <input id="type" class="easyui-combogrid" style="width:200px" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../partoltype/quanbu',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    ">
            <button onclick="ban()" type="button" class="btn btn-default">查询</button>
        </form>
            <table id="table"></table>
    </div>
</div>







<!-- 模态框 -->
<!-- Modal -->
<div class="modal fade" id="myModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">保安巡查</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>
                    <div class="layui-card-header">基本信息</div>
                    <div class="layui-card-body">
                        <div class="form-group">

                            <label for="order">探案编号:</label>
                            <input type="text" class="form-control" id="order">

                            <label for="dangshireng">当事人:</label>
                            <input type="text" class="form-control" id="dangshireng">

                            <label for="sjtype">事件类型:</label><br>
                            <input id="sjtype" class="easyui-combogrid" style="width:200px;" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../partoltype/quanbu',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    "><br>

                            <label for="chulireng">处理人:</label>
                            <input type="text" class="form-control" id="chulireng">


                            <label for="fashengshijian">发生时间:</label>
                            <input id="fashengshijian" type="text" class="form-control" >




                            <label for="chulijieguo">处理结果:</label>
                            <input type="text" class="form-control" id="chulijieguo" >

                            <label for="shijianjianyao">事件简要:</label>
                            <textarea class="form-control" rows="3" id="shijianjianyao"></textarea>


                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button onclick="add2()" type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>




<%--双击打开--%>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div style="width: 500px;" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel2">修改建议意见</h4>
            </div>
            <div class="modal-body">
                <!-- form开始 -->
                <form>

                    <input type="hidden" id="yin1">

                    <div class="form-group">
                        <label>编号:</label> <input type="text" class="form-control" id="Sorder" readonly="readonly">
                    </div>
                    <div class="form-group">
                        <label>当事人:</label> <input type="text" class="form-control" id="Sdangshireng">
                    </div>

                    <div class="form-group">
                        <label>事件类型:</label> <input id="Ssjtype" class="easyui-combogrid" style="width:200px;" data-options="
			                    panelWidth: 500,
			                    idField: 'id',
			                    textField: 'name',

			                    url: '${pageContext.request.contextPath}/../../partoltype/quanbu',
			                    method: 'get',
			                    columns: [[
				                        {field:'id',title:'id',width:100},
				                        {field:'name',title:'事件类型',width:150},
			                    ]],
			                    fitColumns: true
		                    ">
                    </div>
                    <div class
                                 ="form-group">
                        <label>处理人:</label> <input type="text" class="form-control" id="Schulireng">
                    </div>

                    <div class="form-group">
                        <label>发生时间:</label> <input id="Sssjj" type="text" class="form-control">
                    </div>


                    <div class="form-group">
                        <label>处理结果:</label> <input type="text" class="form-control" id="Schulijieguo">
                    </div>

                    <div class="form-group">
                        <label>事件简要:</label> <textarea class="form-control" rows="3" id="Sshijianjianyao"></textarea>
                    </div>


                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" id="ddd" onclick="upd()" class="btn btn-primary" data-dismiss="modal">确认</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
